﻿@model vnMcdonald.Models.Product
@if (Model.IsActive == 1)
    {
        @Ajax.ActionLink("Mở", "Update_Status_Products", new { id = Model.ProductId }, new AjaxOptions { InsertionMode = InsertionMode.Replace, UpdateTargetId = "row-" + string.Format("{0}", Model.ProductId) }, new {@class ="enable" })
    }
    else {
        @Ajax.ActionLink("Đóng", "Update_Status_Products", new { id = Model.ProductId }, new AjaxOptions { InsertionMode = InsertionMode.Replace, UpdateTargetId = "row-" + string.Format("{0}", Model.ProductId) }, new {@class ="disable" })
    }

